package com.example.basics.examples;


import com.example.basics.model.Student;

public class PassByValueExample {

    private static void func(Student student) {
        student.setUsername("B");
    }

    public static void main(String[] args) {
        Student student = new Student("A","123","dba");
        func(student);
        System.out.println(student.getUsername());          // B
    }

}
